package com.kaishengit.pms.web;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class Fileupload extends HttpServlet {

	
	private static final long serialVersionUID = 1L;
	
	
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		HttpSession session = request.getSession();
		String name = request.getParameter("name");
		String projectid = request.getParameter("projectid");
		String filetypeid = request.getParameter("filetypeid");
	
		session.setAttribute("name", name);
		session.setAttribute("projectid",projectid );
		session.setAttribute("filetypeid", filetypeid);
		request.getRequestDispatcher("WEB-INF/views/upload.jsp").forward(request, response);
	}


}
